package com.zlf.web.service;

import org.apache.cxf.frontend.ClientProxyFactoryBean;

/**
 * Created by Administrator on 2016/12/22.
 *基于 CXF simple 方式的客户端
 * @author zlf
 */
public class SimpleClient {

    public static void main(String[] args) {

//        ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
//        factory.setAddress("http://localhost:8080/ws/soap/hello");
//        factory.setServiceClass(HelloService.class);
//        HelloService helloService = factory.create(HelloService.class);
//        String result = helloService.say("world");
//        System.out.println(result);
    }
}
